a = 10
b = 20
print(dir(a))

# 主要数字相关内置函数
print(a.__add__(b))
print(a.__sub__(b))
print(a.__mul__(b))
print(a.__mod__(b))
print(a.__divmod__(b))
print(a.__truediv__(b))
print(a.__floordiv__(b))
print(f"{a}>{b}?", a.__gt__(b))
print(f"{a}>={b}?", a.__ge__(b))
print(f"{a}=={b}", a.__eq__(b))
print(f"{a}<{b}", a.__lt__(b))
print(f"{a}<={b}", a.__le__(b))
print(f"{a}!={b}", a.__ne__(b))

print(f"{a}的平方", a ** 2)
print(f"{a}的平方", a.__pow__(2))
